const dic = {
  templateType: [
    {
      label: '任务跟进',
      value: '0'
    },
    {
      label: '指标评分',
      value: '1'
    }
  ],
  templateStatus: [
    {
      label: '有效',
      value: '0'
    },
    {
      label: '无效',
      value: '1'
    }
  ]
}

export const option = {
  border: true,
  stripe: true,
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  printBtn: false,
  selection: true,
  reserveSelection: false,
  tip: false,
  selectable: (row, index) => {
    return index !== 0
  },
  simplePage: true,
  searchBtnText: '搜索',
  emptyBtnText: '清空',
  dialogType: 'drawer',
  searchMenuSpan: 6, //搜索按钮是否单独成行
  index: true,
  indexLabel: '序号',
  align: 'center',
  column: [
    {
      label: '物料分类名称',
      prop: 'classifyName',
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6, // 搜索栏 布局
      searchslot: true,
      minWidth: 150
    },
    {
      label: '审厂模版应用说明',
      prop: 'explain',
      searchLabelWidth: 130, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6, // 搜索栏 布局
      minWidth: 150
    },
    {
      label: '模版类型',
      prop: 'templateType',
      type: 'select',
      props: {
        label: 'label',
        value: 'value'
      },
      dicData: dic.templateType,
      slot: true,
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6, // 搜索栏 布局
      minWidth: 150
    },
    {
      label: '模版状态',
      prop: 'status',
      type: 'select',
      props: {
        label: 'label',
        value: 'value'
      },
      dicData: dic.templateStatus,
      slot:true,
      searchLabelWidth: 110, //搜索label宽度
      search: true, //启动搜索
      searchSpan: 6, // 搜索栏 布局
      minWidth: 150
    },
    {
      label: '创建人',
      prop: 'createUserName',
      minWidth: 100
    },
    {
      label: '更新时间',
      prop: 'updateTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      minWidth: 140
    }
  ]
}

export const page = {
  currentPage: 1,
  total: 40,
  layout: 'total, sizes, prev, pager, next, jumper',
  pageSizes: [10, 20, 50, 100],
  pageSize: 10
}
